home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #1 / Amiga Plus CD - 2000 - No. 1.iso / Tools / Treiber / ATA / ATA3-Install < prev    next >
Encoding:
Text File  |  1999-12-03  |  7.8 KB  |  368 lines

  1. (set #kkversion (getversion))
  2. (set #kkversion (/ #kkversion 65536) )
  3. (set #ilnapedow 3)
  4. (set alinstal 0)
  5. (set #proc (database "cpu"))
  6. (if (OR (= #proc "68000") (= #proc "68010"))
  7.     (abort "\n\nProcessor 68020 or higher is required!")
  8. (if (< #kkversion 39)
  9.    (abort "\n\nKickstart 3.0 or higher is required!")
  10. )
  11.  
  12.  
  13. (if (= (getsize "ENVARC:ATA3.Prefs") 13)
  14.  (set alinstal 1)
  15. )
  16. (if (= alinstal 1)
  17. (
  18. (message "\n\n\n\nWelcome to AllegroCDFS! ")
  19.  
  20. (copylib
  21.    (prompt "AllegroCDFS will be copied to L: directory.")
  22.    (help )
  23.    (source "mountlists/orgella")
  24.    (confirm)
  25.    (newname "AllegroCDFS")
  26.    (dest "L:")
  27. )
  28.  
  29. (set wybor 0)
  30. (set wybor 
  31.   (askbool
  32.    (prompt "\n\n\n\nMay I delete all CDx mountlists in DEVS:Dosdrivers/?\nRecommended: YES.")
  33.    (help )
  34.    (choices  "Yes"  "No")
  35.    (default 1)
  36.   )
  37. )
  38. (if (= wybor 1)      
  39.  (delete "DEVS:dosdrivers/CD#?")
  40. )      
  41.  
  42. (if (> #ilnapedow 0)
  43.  (
  44.   (set #zastap 1)
  45.   (set #cdrom
  46.    (askchoice
  47.     (prompt "\n\n\My first CD-ROM (CD-R, CD-RW, DVD) is connected as:")
  48.     (choices "None" "Primary Slave" "Secondary Master" "Secondary Slave") 
  49.     (default 1)
  50.     (help )
  51.    )
  52.   )
  53.   (if (> #cdrom 0)
  54.    (   
  55.     (set #ilnapedow (- #ilnapedow 1))
  56.      (set name (cat "DEVS:DosDrivers/CD" #cdrom))
  57.     (if (exists name)
  58.      (set #zastap 
  59.       (askbool
  60.        (prompt "\n\n\File " name " exists.\nMay I overwrite it?")
  61.        (help )
  62.        (default 0)
  63.       )
  64.      )
  65.     )
  66.     (if (= #zastap 1)
  67.      (
  68.       (set namep (cat "CD" #cdrom))
  69.       (set names (cat "mountlists/" namep))
  70.       (copyfiles
  71.        (prompt namep ".info will be copied to DEVS:Dosdrivers/ directory.")
  72.        (help )
  73.        (source names)
  74.        (dest "DEVS:Dosdrivers/")
  75.        (infos)
  76.       )
  77.      ) 
  78.     ) 
  79.    )  
  80.   )   
  81.  )    
  82. )
  83. (if (AND (> #ilnapedow 0) (> #cdrom 0))
  84.  (
  85.   (set #zastap 1)
  86.   (set #cdrom
  87.    (askchoice
  88.     (prompt "\n\n\My second CD-ROM (CD-R, CD-RW, DVD) is connected as:")
  89.     (choices "None" "Primary Slave" "Secondary Master" "Secondary Slave") 
  90.     (default 2)
  91.     (help )
  92.    )
  93.   )
  94.   (if (> #cdrom 0)
  95.    (   
  96.     (set #ilnapedow (- #ilnapedow 1))
  97.      (set name (cat "DEVS:DosDrivers/CD" #cdrom))
  98.     (if (exists name)
  99.      (set #zastap 
  100.       (askbool
  101.        (prompt "\n\n\File " name " exists.\nMay I overwrite it?")
  102.        (help )
  103.        (default 0)
  104.       )
  105.      )
  106.     )
  107.     (if (= #zastap 1)
  108.      (
  109.       (set namep (cat "CD" #cdrom))
  110.       (set names (cat "mountlists/" namep))
  111.       (copyfiles
  112.        (prompt namep ".info will be copied to DEVS:Dosdrivers/ directory.")
  113.        (help )
  114.        (source names)
  115.        (dest "DEVS:Dosdrivers/")
  116.        (infos)
  117.       )
  118.      ) 
  119.     ) 
  120.    )  
  121.   )   
  122.  )    
  123. )
  124. (if (AND (> #ilnapedow 0) (> #cdrom 0))
  125.  (
  126.   (set #zastap 1)
  127.   (set #cdrom
  128.    (askchoice
  129.     (prompt "\n\n\My third CD-ROM (CD-R, CD-RW, DVD) is connected as:")
  130.     (choices "None" "Primary Slave" "Secondary Master" "Secondary Slave") 
  131.     (default 3)
  132.     (help )
  133.    )
  134.   )
  135.   (if (> #cdrom 0)
  136.    (   
  137.     (set #ilnapedow (- #ilnapedow 1))
  138.      (set name (cat "DEVS:DosDrivers/CD" #cdrom))
  139.     (if (exists name)
  140.      (set #zastap 
  141.       (askbool
  142.        (prompt "\n\n\File " name " exists.\nMay I overwrite it?")
  143.        (help )
  144.        (default 0)
  145.       )
  146.      )
  147.     )
  148.     (if (= #zastap 1)
  149.      (
  150.       (set namep (cat "CD" #cdrom))
  151.       (set names (cat "mountlists/" namep))
  152.       (copyfiles
  153.        (prompt namep ".info will be copied to DEVS:Dosdrivers/ directory.")
  154.        (help )
  155.        (source names)
  156.        (dest "DEVS:Dosdrivers/")
  157.        (infos)
  158.       )
  159.      ) 
  160.     ) 
  161.    )  
  162.   )   
  163.  )    
  164. )
  165. (message "\n\n\n\nAllegroCDFS succesfully installed.")
  166. )
  167. )
  168. (message "\n\n\n\nWelcome to FastATA'99! ")
  169.  
  170. (set reinstalacja
  171.  (askchoice
  172.   (prompt "")
  173.    (help "\nSelect Installation only when you install this software"
  174.      " for the first time on this HDD, otherwise select Reinstallation.")
  175.    (choices "Installation" "Reinstallation")
  176.    (default 0)
  177.  )
  178. )
  179. (if reinstalacja
  180.  (set wybor 0)
  181.  (set wybor 
  182.   (askbool
  183.    (prompt "\n\n\n\nMay I change your s:startup-sequence?")
  184.    (help "\nIf you agree to change your s:startup-sequence, the installer"
  185.       "will add five lines after setpatch:\n\n C:CheckLMB\n"
  186.       " IF WARN\n SYS:Prefs/ATA3Prefs\n ENDIF\n C:ATA3.driver QUIET")
  187.    (choices  "Yes"  "No")
  188.    (default 1)
  189.   )
  190.  )
  191. )
  192.  
  193. (copylib
  194.    (prompt "ATA3.driver will be copied to C: directory.")
  195.    (help )
  196.    (source "ATA3.driver")
  197.    (confirm)
  198.    (dest "C:")
  199. )
  200.  
  201. (copylib
  202.    (prompt "ATA3Prefs will be copied to SYS:Prefs directory.")
  203.    (help )
  204.    (source "ATA3Prefs")
  205.    (confirm)
  206.    (infos)
  207.    (dest "SYS:Prefs")
  208. )
  209.  
  210. (copyfiles
  211.    (prompt "CheckLMB will be copied to C: directory.")
  212.    (source "CheckLMB")
  213.    (help )
  214.    (dest "C:")
  215. )
  216.  
  217. (if wybor
  218.    (
  219.       (copyfiles
  220.         (source "S:startup-sequence")
  221.         (dest "RAM:")
  222.       )
  223.       (textfile
  224.         (dest "S:startup-sequence")
  225.         (append "C:SetPatch QUIET\nC:CheckLMB\nIF WARN\n")
  226.         (append "SYS:Prefs/ATA3Prefs\nENDIF\nC:ATA3.driver QUIET\n")
  227.         (include "RAM:startup-sequence")
  228.       )
  229.       (delete "RAM:startup-sequence")
  230.    )
  231. )
  232.  
  233. (if (> #ilnapedow 0)
  234.  (
  235.   (set #zastap 1)
  236.   (set #ls120
  237.    (askchoice
  238.     (prompt "\n\n\My first LS-120 (ZIP, SyQuest) is connected as:")
  239.     (choices "None" "Primary Slave" "Secondary Master" "Secondary Slave") 
  240.     (default 1)
  241.     (help )
  242.    )
  243.   )
  244.   (if (> #ls120 0)
  245.    (   
  246.     (set #ilnapedow (- #ilnapedow 1))
  247.     (set #ls120 (+ #ls120 4))
  248.     (set name (cat "DEVS:DosDrivers/PC" #ls120))
  249.     (if (exists name)
  250.      (set #zastap         
  251.       (askbool
  252.        (prompt "\n\n\File " name " exists.\nMay I overwrite it?")
  253.        (help )
  254.        (default 0)
  255.       )
  256.      )
  257.     )
  258.     (if (= #zastap 1)
  259.      (
  260.       (set namep (cat "PC" #ls120))
  261.       (set names (cat "mountlists/" namep))
  262.       (copyfiles
  263.        (prompt namep ".info will be copied to DEVS:Dosdrivers/ directory.")
  264.        (help )
  265.        (source names)
  266.        (dest "DEVS:Dosdrivers/")
  267.        (infos)
  268.       )
  269.      )
  270.     ) 
  271.    )
  272.   )
  273.  )
  274. )
  275.  
  276. (if (AND (> #ilnapedow 0) (> #ls120 0))
  277.  (
  278.   (set #zastap 1)
  279.   (set #ls120
  280.    (askchoice
  281.     (prompt "\n\n\My second LS-120 (ZIP, SyQuest) is connected as:")
  282.     (choices "None" "Primary Slave" "Secondary Master" "Secondary Slave") 
  283.     (default 2)
  284.     (help )
  285.    )
  286.   )
  287.   (if (> #ls120 0)
  288.    (   
  289.     (set #ilnapedow (- #ilnapedow 1))
  290.     (set #ls120 (+ #ls120 4))
  291.     (set name (cat "DEVS:DosDrivers/PC" #ls120))
  292.     (if (exists name)
  293.      (set #zastap         
  294.       (askbool
  295.        (prompt "\n\n\File " name " exists.\nMay I overwrite it?")
  296.        (help )
  297.        (default 0)
  298.       )
  299.      )
  300.     )
  301.     (if (= #zastap 1)
  302.      (
  303.       (set namep (cat "PC" #ls120))
  304.       (set names (cat "mountlists/" namep))
  305.       (copyfiles
  306.        (prompt namep ".info will be copied to DEVS:Dosdrivers/ directory.")
  307.        (help )
  308.        (source names)
  309.        (dest "DEVS:Dosdrivers/")
  310.        (infos)
  311.       )
  312.      )
  313.     ) 
  314.    )
  315.   )
  316.  )
  317. )
  318.  
  319.  
  320. (if (AND (> #ilnapedow 0) (> #ls120 0))
  321.  (
  322.   (set #zastap 1)
  323.   (set #ls120
  324.    (askchoice
  325.     (prompt "\n\n\My third LS-120 (ZIP, SyQuest) is connected as:")
  326.     (choices "None" "Primary Slave" "Secondary Master" "Secondary Slave") 
  327.     (default 3)
  328.     (help )
  329.    )
  330.   )
  331.   (if (> #ls120 0)
  332.    (   
  333.     (set #ilnapedow (- #ilnapedow 1))
  334.     (set #ls120 (+ #ls120 4))
  335.     (set name (cat "DEVS:DosDrivers/PC" #ls120))
  336.     (if (exists name)
  337.      (set #zastap         
  338.       (askbool
  339.        (prompt "\n\n\File " name " exists.\nMay I overwrite it?")
  340.        (help )
  341.        (default 0)
  342.       )
  343.      )
  344.     )
  345.     (if (= #zastap 1)
  346.      (
  347.       (set namep (cat "PC" #ls120))
  348.       (set names (cat "mountlists/" namep))
  349.       (copyfiles
  350.        (prompt namep ".info will be copied to DEVS:Dosdrivers/ directory.")
  351.        (help )
  352.        (source names)
  353.        (dest "DEVS:Dosdrivers/")
  354.        (infos)
  355.       )
  356.      )
  357.     ) 
  358.    )
  359.   )
  360.  )
  361. )
  362.  
  363. (exit "\n\n\n\nFastATA'99 succesfully installed.\n\n"
  364.       "Now reboot your machine with left mouse button\npressed. "
  365.       "It will run ATA3Prefs.\n\n"
  366.       "Click SAVE on exit from ATA3Prefs." (quiet))
  367.